package com.meilai.project.entity.business.sale;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;


/**
 * @author GXH
 * @since 2023-09-07
 */
@Data
@TableName("bill_sale_media_detail")
@ApiModel(value = "BillSaleMediaDetail对象", description = "")
public class BillSaleMediaDetail {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "合同Id")
    private Long contract_id;

    @ApiModelProperty(value = "销售单id")
    private Long bill_sale_id;

    @ApiModelProperty(value = "媒体类型ID")
    private Long media_type_id;

    @ApiModelProperty(value = "媒体类型规格id")
    private String media_type_spec_id;

    @ApiModelProperty(value = "执行开始时间")
    private LocalDate execute_time_start;

    @ApiModelProperty(value = "执行结束时间")
    private LocalDate execute_time_end;

    @ApiModelProperty(value = "合同数量")
    private Long contract_quantity;

    @ApiModelProperty(value = "合同单价")
    private BigDecimal contract_price;

    @ApiModelProperty(value = "本次执行数量")
    private Long quantity;

    @ApiModelProperty(value = "已累计执行数量")
    private Long total_executed_quantity;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "执行金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "是否关联市场单")
    private Long is_market;

    @ApiModelProperty(value = "周期")
    private Long media_cycle;

    @ApiModelProperty(value = "周期单位")
    private String media_cycle_unit;

    @ApiModelProperty(value = "class名称")
    private String class_name;

}
